package Java7_Concurrency_Cookbook.concurrent_custom.custom_runnable_scheduled_future;

import java.util.concurrent.TimeUnit;

/**
 * @author lixiangke
 * @date 2017/11/24
 */
public class Task implements Runnable {

    @Override
    public void run() {
        System.out.printf("Zoom: Begin.\n");
        try {
            TimeUnit.SECONDS.sleep(2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.printf("Zoom: End.\n");
    }
}
